←Select platform

Set<T>(CacheItem<T>,CacheItemPolicy) Method

Summary

Adds an item into the cache.

Syntax
C#
VB
C++
Java
public virtual void Set<T>( 
   CacheItem<T> item, 
   CacheItemPolicy policy 
) 
Public Overridable Sub [Set](Of T)( 
   ByVal item As CacheItem(Of T), 
   ByVal policy As CacheItemPolicy 
) 
public:  
   generic<typename T> 
   virtual void Set( 
      CacheItem<T>^ item, 
      CacheItemPolicy^ policy 
   ) 
public<T> void set(CacheItem<T> item, Class<?> classOfT, CacheItemPolicy policy) 

Parameters

item

Cache item to add.

policy

Item expiration policy.

Remarks

If the item is already in the cache, then it will be replaced with the new item and its policy updated.

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Caching Assembly